
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="Resource-delete"><strong>delete</strong></a> = method(self, **kwargs)</dt><dd><tt>Deletes&nbsp;a&nbsp;location&nbsp;from&nbsp;the&nbsp;user's&nbsp;location&nbsp;history.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;locationId:&nbsp;string,&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;location&nbsp;to&nbsp;delete&nbsp;(ms&nbsp;since&nbsp;epoch).&nbsp;(required)</tt></dd></dl>

<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Reads&nbsp;a&nbsp;location&nbsp;from&nbsp;the&nbsp;user's&nbsp;location&nbsp;history.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;locationId:&nbsp;string,&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;location&nbsp;to&nbsp;read&nbsp;(ms&nbsp;since&nbsp;epoch).&nbsp;(required)<br>
&nbsp;&nbsp;granularity:&nbsp;string,&nbsp;Granularity&nbsp;of&nbsp;the&nbsp;location&nbsp;to&nbsp;return.<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;#&nbsp;A&nbsp;Location&nbsp;resource&nbsp;identifies&nbsp;a&nbsp;user's&nbsp;position&nbsp;at&nbsp;a&nbsp;particular&nbsp;time.&nbsp;It&nbsp;may&nbsp;include&nbsp;metadata&nbsp;about&nbsp;the&nbsp;user's&nbsp;position,&nbsp;such&nbsp;as&nbsp;a&nbsp;venue&nbsp;if&nbsp;the&nbsp;location&nbsp;was&nbsp;recorded&nbsp;at&nbsp;the&nbsp;time&nbsp;of&nbsp;a&nbsp;check-in.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"kind":&nbsp;"latitude#location",&nbsp;#&nbsp;Kind&nbsp;of&nbsp;this&nbsp;item.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"altitude":&nbsp;"",&nbsp;#&nbsp;Altitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"longitude":&nbsp;"",&nbsp;#&nbsp;Longitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"activityId":&nbsp;"",&nbsp;#&nbsp;Unique&nbsp;ID&nbsp;of&nbsp;the&nbsp;Buzz&nbsp;message&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;the&nbsp;check-in&nbsp;associated&nbsp;with&nbsp;this&nbsp;location.&nbsp;Available&nbsp;only&nbsp;for&nbsp;check-in&nbsp;locations.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"latitude":&nbsp;"",&nbsp;#&nbsp;Latitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"altitudeAccuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;altitude&nbsp;value,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"timestampMs":&nbsp;"",&nbsp;#&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;Location&nbsp;Resource,&nbsp;in&nbsp;milliseconds&nbsp;since&nbsp;the&nbsp;epoch&nbsp;(UTC).&nbsp;This&nbsp;is&nbsp;also&nbsp;the&nbsp;Location&nbsp;Resource's&nbsp;unique&nbsp;id.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"speed":&nbsp;"",&nbsp;#&nbsp;Ground&nbsp;speed&nbsp;of&nbsp;the&nbsp;user&nbsp;at&nbsp;the&nbsp;time&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded,&nbsp;in&nbsp;meters&nbsp;per&nbsp;second.&nbsp;Non-negative.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"heading":&nbsp;"",&nbsp;#&nbsp;Direction&nbsp;of&nbsp;travel&nbsp;of&nbsp;the&nbsp;user&nbsp;when&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded.&nbsp;In&nbsp;degrees,&nbsp;clockwise&nbsp;relative&nbsp;to&nbsp;true&nbsp;north.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"accuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;latitude&nbsp;and&nbsp;longitude&nbsp;coordinates,&nbsp;in&nbsp;non-negative&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;}</tt></dd></dl>

<dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts&nbsp;or&nbsp;updates&nbsp;a&nbsp;location&nbsp;in&nbsp;the&nbsp;user's&nbsp;location&nbsp;history.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;body:&nbsp;object,&nbsp;The&nbsp;request&nbsp;body.&nbsp;(required)<br>
&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;object&nbsp;takes&nbsp;the&nbsp;form&nbsp;of:<br>
&nbsp;<br>
{&nbsp;#&nbsp;A&nbsp;Location&nbsp;resource&nbsp;identifies&nbsp;a&nbsp;user's&nbsp;position&nbsp;at&nbsp;a&nbsp;particular&nbsp;time.&nbsp;It&nbsp;may&nbsp;include&nbsp;metadata&nbsp;about&nbsp;the&nbsp;user's&nbsp;position,&nbsp;such&nbsp;as&nbsp;a&nbsp;venue&nbsp;if&nbsp;the&nbsp;location&nbsp;was&nbsp;recorded&nbsp;at&nbsp;the&nbsp;time&nbsp;of&nbsp;a&nbsp;check-in.<br>
&nbsp;&nbsp;"kind":&nbsp;"latitude#location",&nbsp;#&nbsp;Kind&nbsp;of&nbsp;this&nbsp;item.<br>
&nbsp;&nbsp;"altitude":&nbsp;"",&nbsp;#&nbsp;Altitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;"longitude":&nbsp;"",&nbsp;#&nbsp;Longitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;"activityId":&nbsp;"",&nbsp;#&nbsp;Unique&nbsp;ID&nbsp;of&nbsp;the&nbsp;Buzz&nbsp;message&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;the&nbsp;check-in&nbsp;associated&nbsp;with&nbsp;this&nbsp;location.&nbsp;Available&nbsp;only&nbsp;for&nbsp;check-in&nbsp;locations.&nbsp;Optional.<br>
&nbsp;&nbsp;"latitude":&nbsp;"",&nbsp;#&nbsp;Latitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;"altitudeAccuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;altitude&nbsp;value,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;"timestampMs":&nbsp;"",&nbsp;#&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;Location&nbsp;Resource,&nbsp;in&nbsp;milliseconds&nbsp;since&nbsp;the&nbsp;epoch&nbsp;(UTC).&nbsp;This&nbsp;is&nbsp;also&nbsp;the&nbsp;Location&nbsp;Resource's&nbsp;unique&nbsp;id.<br>
&nbsp;&nbsp;"speed":&nbsp;"",&nbsp;#&nbsp;Ground&nbsp;speed&nbsp;of&nbsp;the&nbsp;user&nbsp;at&nbsp;the&nbsp;time&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded,&nbsp;in&nbsp;meters&nbsp;per&nbsp;second.&nbsp;Non-negative.&nbsp;Optional.<br>
&nbsp;&nbsp;"heading":&nbsp;"",&nbsp;#&nbsp;Direction&nbsp;of&nbsp;travel&nbsp;of&nbsp;the&nbsp;user&nbsp;when&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded.&nbsp;In&nbsp;degrees,&nbsp;clockwise&nbsp;relative&nbsp;to&nbsp;true&nbsp;north.&nbsp;Optional.<br>
&nbsp;&nbsp;"accuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;latitude&nbsp;and&nbsp;longitude&nbsp;coordinates,&nbsp;in&nbsp;non-negative&nbsp;meters.&nbsp;Optional.<br>
}<br>
&nbsp;<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;#&nbsp;A&nbsp;Location&nbsp;resource&nbsp;identifies&nbsp;a&nbsp;user's&nbsp;position&nbsp;at&nbsp;a&nbsp;particular&nbsp;time.&nbsp;It&nbsp;may&nbsp;include&nbsp;metadata&nbsp;about&nbsp;the&nbsp;user's&nbsp;position,&nbsp;such&nbsp;as&nbsp;a&nbsp;venue&nbsp;if&nbsp;the&nbsp;location&nbsp;was&nbsp;recorded&nbsp;at&nbsp;the&nbsp;time&nbsp;of&nbsp;a&nbsp;check-in.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"kind":&nbsp;"latitude#location",&nbsp;#&nbsp;Kind&nbsp;of&nbsp;this&nbsp;item.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"altitude":&nbsp;"",&nbsp;#&nbsp;Altitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"longitude":&nbsp;"",&nbsp;#&nbsp;Longitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"activityId":&nbsp;"",&nbsp;#&nbsp;Unique&nbsp;ID&nbsp;of&nbsp;the&nbsp;Buzz&nbsp;message&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;the&nbsp;check-in&nbsp;associated&nbsp;with&nbsp;this&nbsp;location.&nbsp;Available&nbsp;only&nbsp;for&nbsp;check-in&nbsp;locations.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"latitude":&nbsp;"",&nbsp;#&nbsp;Latitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"altitudeAccuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;altitude&nbsp;value,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"timestampMs":&nbsp;"",&nbsp;#&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;Location&nbsp;Resource,&nbsp;in&nbsp;milliseconds&nbsp;since&nbsp;the&nbsp;epoch&nbsp;(UTC).&nbsp;This&nbsp;is&nbsp;also&nbsp;the&nbsp;Location&nbsp;Resource's&nbsp;unique&nbsp;id.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"speed":&nbsp;"",&nbsp;#&nbsp;Ground&nbsp;speed&nbsp;of&nbsp;the&nbsp;user&nbsp;at&nbsp;the&nbsp;time&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded,&nbsp;in&nbsp;meters&nbsp;per&nbsp;second.&nbsp;Non-negative.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"heading":&nbsp;"",&nbsp;#&nbsp;Direction&nbsp;of&nbsp;travel&nbsp;of&nbsp;the&nbsp;user&nbsp;when&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded.&nbsp;In&nbsp;degrees,&nbsp;clockwise&nbsp;relative&nbsp;to&nbsp;true&nbsp;north.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;"accuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;latitude&nbsp;and&nbsp;longitude&nbsp;coordinates,&nbsp;in&nbsp;non-negative&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;}</tt></dd></dl>

<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Lists&nbsp;the&nbsp;user's&nbsp;location&nbsp;history.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;min_time:&nbsp;string,&nbsp;Minimum&nbsp;timestamp&nbsp;of&nbsp;locations&nbsp;to&nbsp;return&nbsp;(ms&nbsp;since&nbsp;epoch).<br>
&nbsp;&nbsp;max_results:&nbsp;string,&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;locations&nbsp;to&nbsp;return.<br>
&nbsp;&nbsp;max_time:&nbsp;string,&nbsp;Maximum&nbsp;timestamp&nbsp;of&nbsp;locations&nbsp;to&nbsp;return&nbsp;(ms&nbsp;since&nbsp;epoch).<br>
&nbsp;&nbsp;granularity:&nbsp;string,&nbsp;Granularity&nbsp;of&nbsp;the&nbsp;requested&nbsp;locations.<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;"items":&nbsp;[<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;#&nbsp;A&nbsp;Location&nbsp;resource&nbsp;identifies&nbsp;a&nbsp;user's&nbsp;position&nbsp;at&nbsp;a&nbsp;particular&nbsp;time.&nbsp;It&nbsp;may&nbsp;include&nbsp;metadata&nbsp;about&nbsp;the&nbsp;user's&nbsp;position,&nbsp;such&nbsp;as&nbsp;a&nbsp;venue&nbsp;if&nbsp;the&nbsp;location&nbsp;was&nbsp;recorded&nbsp;at&nbsp;the&nbsp;time&nbsp;of&nbsp;a&nbsp;check-in.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"kind":&nbsp;"latitude#location",&nbsp;#&nbsp;Kind&nbsp;of&nbsp;this&nbsp;item.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"altitude":&nbsp;"",&nbsp;#&nbsp;Altitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"longitude":&nbsp;"",&nbsp;#&nbsp;Longitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"activityId":&nbsp;"",&nbsp;#&nbsp;Unique&nbsp;ID&nbsp;of&nbsp;the&nbsp;Buzz&nbsp;message&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;the&nbsp;check-in&nbsp;associated&nbsp;with&nbsp;this&nbsp;location.&nbsp;Available&nbsp;only&nbsp;for&nbsp;check-in&nbsp;locations.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"latitude":&nbsp;"",&nbsp;#&nbsp;Latitude&nbsp;of&nbsp;the&nbsp;location,&nbsp;in&nbsp;decimal&nbsp;degrees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"altitudeAccuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;altitude&nbsp;value,&nbsp;in&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"timestampMs":&nbsp;"",&nbsp;#&nbsp;Timestamp&nbsp;of&nbsp;the&nbsp;Location&nbsp;Resource,&nbsp;in&nbsp;milliseconds&nbsp;since&nbsp;the&nbsp;epoch&nbsp;(UTC).&nbsp;This&nbsp;is&nbsp;also&nbsp;the&nbsp;Location&nbsp;Resource's&nbsp;unique&nbsp;id.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"speed":&nbsp;"",&nbsp;#&nbsp;Ground&nbsp;speed&nbsp;of&nbsp;the&nbsp;user&nbsp;at&nbsp;the&nbsp;time&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded,&nbsp;in&nbsp;meters&nbsp;per&nbsp;second.&nbsp;Non-negative.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"heading":&nbsp;"",&nbsp;#&nbsp;Direction&nbsp;of&nbsp;travel&nbsp;of&nbsp;the&nbsp;user&nbsp;when&nbsp;this&nbsp;location&nbsp;was&nbsp;recorded.&nbsp;In&nbsp;degrees,&nbsp;clockwise&nbsp;relative&nbsp;to&nbsp;true&nbsp;north.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"accuracy":&nbsp;"",&nbsp;#&nbsp;Accuracy&nbsp;of&nbsp;the&nbsp;latitude&nbsp;and&nbsp;longitude&nbsp;coordinates,&nbsp;in&nbsp;non-negative&nbsp;meters.&nbsp;Optional.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;],<br>
&nbsp;&nbsp;&nbsp;&nbsp;"kind":&nbsp;"latitude#locationFeed",<br>
&nbsp;&nbsp;}</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>